﻿<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="login.aspx.cs" Inherits="Admin_login" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>礼券管理系统</title>
<style type="text/css">
<!--
body{
	background:#F7F7F7;
	
	}
#box {
position:absolute;
top:50%;
left:50%;
margin:-250px 0 0 -400px;
width:800px;
height:500px;
background:url(images/login_bg1.jpg) no-repeat;
}
table,tr,td{
	font-size:14px;
	color:#666666;
	font-weight:bold;
	font:"微软雅黑",Verdana, Arial, Helvetica, sans-serif;
	}
#login{
	margin-top:200px;
	margin-left:450px;
	}
.b1{
	width:180px;
	height:25px;
	border:2px solid #ccc;
	line-height:25px;
	font-size:14px;
	}
.b3{
	width:60px;
	height:25px;
	border:2px solid #ccc;
	line-height:25px;
	font-size:14px;
	}
.b2{
	width:129px;
	height:37px;
	background:url(images/bt_Login.jpg);
	border:0;
	}
-->
</style>
<link href="css/forms.css" rel="stylesheet" type="text/css" />
</head>

<body>
<form id="fmLogin" runat="server">
<div id="box">
<div id="login">
  <table id="Table1">
    <tr>
      <td height="40">用户名：      </td>
      <td>
            <asp:TextBox ID="txtUserName" runat="server" class="b1" 
                AutoCompleteType="Disabled"></asp:TextBox>
            <asp:RequiredFieldValidator ID="rfv1" runat="server" 
                    ControlToValidate="txtUserName" ErrorMessage="*"></asp:RequiredFieldValidator>
      </td>
    </tr>
    <tr>
      <td height="40">密　码：      </td>
      <td>
        <asp:TextBox ID="txtPassword" runat="server" class="b1" TextMode="Password" 
              AutoCompleteType="Disabled"></asp:TextBox>
        <asp:RequiredFieldValidator ID="rfv2" runat="server" 
            ControlToValidate="txtPassword" ErrorMessage="*"></asp:RequiredFieldValidator>
      </td>
    </tr>
    <tr>
      <td >&nbsp;</td>
      <td>
          <asp:CheckBox ID="ckboxRemember" runat="server" Text="记住用户名密码7天" />
      </td>
    </tr>
    <tr>
      <td height="40">验证码：      </td>
      <td>
	    <asp:TextBox ID="txtValidate" runat="server" class="b3" AutoCompleteType="Disabled"></asp:TextBox>
        <asp:Image ID="imgValidate" runat="server" ImageAlign="Middle" ImageUrl="~/ValidateCode.aspx" />
        <a href="#" onclick="document.getElementById('imgValidate').src='ValidateCode.aspx?id=' + Math.random(); return false">换一张</a>
        </td>
    </tr>
    <tr>
      <td height="35">&nbsp;</td>
      <td>
          <asp:Button ID="btnLogin" runat="server" class="b2" OnClick="btnLogin_Click"/>
      </td>
    </tr>
  </table>
  </div>
</div>
</form>
</body>
</html>